package com.springboot.onlinemusicserver.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * Created with IntelliJ IDEA.
 * Description :
 * User: jiume
 * Date: 2025-05-20
 * Time: 10:55
 */
@Configuration
public class BcryptConfig {

    // 将BCryptPasswordEncoder类注册到Spring IOC容器中
    @Bean
    public BCryptPasswordEncoder createEncoder() {
        return new BCryptPasswordEncoder();
    }
}
